//
//  VREmptyView.swift
//  VoiceRoom
//
//  Created by Rui on 2024/3/30.
//

import UIKit

class VRContentEmptyView: UIView {
    
    private let emptyImageView = c_make_ex(UIImageView.self)
        .image("content").end()
    private let emptyLabel = c_make_ex(UILabel.self)
        .color(.white.alpha(0.3)).font(14.font_semiBold)
        .alignment(.center).text("There is no content yet").end()

    override init(frame: CGRect) {
        super.init(frame: frame)
        
        subviews{
            emptyImageView
            emptyLabel
        }
        
        emptyImageView.top(0).size(140).centerHorizontally()
        emptyLabel.centerHorizontally()
        emptyLabel.Top == emptyImageView.Bottom + 5
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}


class VRNewsEmptyView: UIView {
    
    private let emptyImageView = c_make_ex(UIImageView.self)
        .image("news").end()
    private let emptyLabel = c_make_ex(UILabel.self)
        .color(.white.alpha(0.3)).font(14.font_semiBold)
        .alignment(.center).text("no news yet").end()

    override init(frame: CGRect) {
        super.init(frame: frame)
        
        subviews{
            emptyImageView
            emptyLabel
        }
        
        emptyImageView.top(0).size(140).centerHorizontally()
        emptyLabel.centerHorizontally()
        emptyLabel.Top == emptyImageView.Bottom + 5
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}
